/*----------------------------------------------------------------------------------------
*
*  Copyright 2019, Gao Hai Hui, <fromzeropoint@126.com>.  All rights reserved.
*  https://gitee.com/helloworldghh/xos_net.git
*  Use of this source code is governed by a MIT license
*  that can be found in the License file.
*
----------------------------------------------------------------------------------------*/
#ifndef __MSG_NOTIFY_MSG_NOTIFY_TCP_H__
#define __MSG_NOTIFY_MSG_NOTIFY_TCP_H__

namespace xos_net
{

    class notify_tcp
    {
    public:
        notify_tcp();
        ~notify_tcp();

    protected:
        int init_server( xos_box::i_msg *& pMsg );
        int connect( xos_box::i_msg*& pMsg );
        int send( xos_box::i_msg*& pMsg );
        int shutdown( xos_box::i_msg*& pMsg );
        int close( xos_box::i_msg*& pMsg );

    public:
        int proc( xos_box::i_msg *& pMsg );

    };

} // xos_net

#endif // __MSG_NOTIFY_MSG_NOTIFY_TCP_H__
